package com.wang;

public class Complex{
    //定义实体类
    public int imag;
    public int real;
    public Complex(int imag ,int real) {
        this.imag = imag;
        this.real = real;
    }
    public boolean check() {
        return imag > 200 && real > 400;
    }

    @Override
    public String toString() {
        return "Complex{" +
                "imag=" + imag +
                ", real=" + real +
                '}';
    }
}